package cn.com.bluemoon.daps.sync.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import reactor.util.function.Tuple2;

/**
 * @author Jarod.Kong
 * @date 2021/6/3 13:34
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SqlCompareResult {
    /**
     * {@link ModifyType#CREATE table()}获取对弈描述
     * 脚本变更类型，t1对应DROP：删除、CREATE：创建、ALTER：修改、NONE：无变化" +
     * ", t2对应TABLE:表、FIELD:字段、INDEX:索引、PARTITION:分区
     */
    @JsonIgnore
    private Tuple2<ModifyType, ModifyType.ModifyLevel> modifyType;

    /**
     * 对比结果脚本 ddl sql / pt
     */
    private BmScript script;
}
